import Vue from "vue"
import Vuex from "vuex"

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		launchOpen: false,
		isLogin: false,
		userInfo: {
			
		}
	},
	mutations: {
		changeLaunch (state) {
			state.launchOpen = !state.launchOpen
		},
		changeLogin (state) {
			state.isLogin = true
		},
		setUserInfo (state, obj) {
			console.log("jzz")
			state.userInfo = obj
		}
	},
	actions: {
		
	}
})

export default store